package com.cabinet.web.entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.cabinet.base.entity.IdEntity;



@Entity
@Table(name="ict_lattice")
public class Lattice extends IdEntity  implements Serializable{
	private static final long serialVersionUID = -6784438547869593456L;
	
	//上架商品的销售价格
    private String salePrice;
    //格子的类型（大1，中2，小3）
    private String lClass;
    //柜子商品的出售状态（空1，待售2，已售未取件3）
    private Integer lState;
    //格子的容量
    private Integer laNum;
    //格子对应的智能柜id
    private String cabId;
    //格子对应的商品id
    private Long commoditiesId;
	public String getSalePrice() {
		return salePrice;
	}
	public void setSalePrice(String salePrice) {
		this.salePrice = salePrice;
	}
	public String getlClass() {
		return lClass;
	}
	public void setlClass(String lClass) {
		this.lClass = lClass;
	}
	public Integer getlState() {
		return lState;
	}
	public void setlState(Integer lState) {
		this.lState = lState;
	}
	public Integer getLaNum() {
		return laNum;
	}
	public void setLaNum(Integer laNum) {
		this.laNum = laNum;
	}
	public String getCabId() {
		return cabId;
	}
	public void setCabId(String cabId) {
		this.cabId = cabId;
	}
	public Long getCommoditiesId() {
		return commoditiesId;
	}
	public void setCommoditiesId(Long commoditiesId) {
		this.commoditiesId = commoditiesId;
	}
    
   /* @ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="cabinet_id",foreignKey=@ForeignKey(value=ConstraintMode.NO_CONSTRAINT))
    private Cabinet cabinet;*/
    
  /*  @ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="commodities_id",foreignKey=@ForeignKey(value=ConstraintMode.NO_CONSTRAINT))
    private Commodities commodities;*/
    
}
